package com.superm.service.impl;

import com.superm.entity.Stock;
import com.superm.entity.SumOrderDetails;
import com.superm.mappers.SumMapper;
import com.superm.service.SumService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class SumServiceImpl implements SumService {
@Autowired
private SumMapper sumMapper;
    @Override
    public List<Stock> sumStock() {
        return sumMapper.sumStock();
    }

    @Override
    public List<SumOrderDetails> sumYear(String year) {
        return sumMapper.sumYear(year);
    }
    @Override
    public List<SumOrderDetails> showYear() {
        System.out.println("ssssssssssssssssssssssssssssssssssssssss");
        System.out.println(sumMapper.showYear());
        return sumMapper.showYear();
    }
}
